<template>
  <div class="total">
    <p>总价：￥{{ total }}</p>
    <button>结算</button>
  </div>
</template>
<script>
export default {
  props: ["total"],
  computed: {
    // total() {
    //   return 10;
    // }
  }
};
</script>

<style scoped>
.total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ddd;
  line-height: 50px;
  position: fixed;
  bottom: 0;
  width: 100%;
}

.total p {
  color: red;
  font-size: 16px;
  font-weight: 600;
  padding-left: 30px;
}

.total button {
  width: 100px;
  background: red;
  border: none;
  outline: none;
  color: #fff;
}
</style>
